package org.hegang.design.first.builderpattern;

/**
 * @Classname: Worder
 * @Description:
 * @Date: 2021/4/21 0:16
 * @Author: gang.he
 * @Email: SmileSkyLife@outlook.com
 * @LastModified:
 * @Version: v1.0.0
 */
public class Worker extends Builder {

    private BedRoom bedRoom;

    public Worker(){
        this.bedRoom = new BedRoom();
    }

    @Override
    public Builder BuildA() {
        this.bedRoom.setBuildA("打地基");
        return this;
    }

    @Override
    public Builder BuildB() {
        this.bedRoom.setBuildB("铺地砖");
        return this;
    }

    @Override
    public Builder BuildC() {
        this.bedRoom.setBuildC("粉刷墙壁");
        return this;
    }

    @Override
    public Builder BuildD() {
        this.bedRoom.setBuildD("盖天花板");
        return this;
    }

    @Override
    public BedRoom getBedRoom() {
        return this.bedRoom;
    }
}
